package com.partner.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import cn.hutool.core.annotation.Alias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 
* </p>
*
* @author 小熊
* @since 2023-03-22
*/
@Getter
@Setter
@TableName("sys_friends")
@ApiModel(value = "Friends对象", description = "")
public class Friends implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("当前用户id")
    @Alias("当前用户id")
    private Integer uid;

    @ApiModelProperty("当前用户朋友id")
    @Alias("当前用户朋友id")
    private Integer fid;

    // 用户唯一标识
    @ApiModelProperty("用户唯一标识")
    @Alias("用户唯一标识")
    private String userId;

    // 朋友id
    @ApiModelProperty("朋友唯一标识")
    @Alias("朋友唯一标识")
    private String friendId;

    @TableField(exist = false)
    private User user;

}